package com.cxs.strategy.spring;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: cxs
 */
@Service
public class StrategyTestSpring {


    @Autowired
    private StrategyFactory strategyFactory;

    /**
     * @param type     选择哪种策略
     * @param username
     * @param pwd
     * @return
     */
    public Object login(String type, String username, String pwd) {
        return strategyFactory.realDoLogin(type, username, pwd);
    }
}
